﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine.Networking;
using UnityEngine.UI;
using UnityEngine;

public class NetWorkUI : MonoBehaviour
{
    private NetworkManager manager;
    public Text address;

    private void Start()
    {
        manager = GetComponent<NetworkManager>();
    }

    public void OnClickSetHost()
    {
        //SetPort();
        manager.StartHost();
    }

    public void OnClickJoinRoom()
    {
        manager.networkAddress = address.text;
        manager.StartClient(); 
    }
}
